﻿using UnityEngine;

namespace Jinndev {

    public struct Math {

        public static int Round(float f, RoundMethod roundMethod) {
            switch (roundMethod) {
                case RoundMethod.Round:
                    return Mathf.RoundToInt(f);
                case RoundMethod.Floor:
                    return Mathf.FloorToInt(f);
                case RoundMethod.Ceil:
                    return Mathf.CeilToInt(f);
                default:
                    return Mathf.RoundToInt(f);
            }
        }

    }

}